package com.hisense.hiioc.hismartplate.service;

import com.hisense.hiioc.hismartplate.base.BaseService;
import com.hisense.hiioc.hismartplate.entity.table.FaceEventEntity;
import com.hisense.hiioc.hismartplate.mapper.FaceCloudEventMapper;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Author: almo
 * @Date: 2018/12/18 下午3:51
 * @Version 1.0
 */
@Service
public class FaceEventService extends BaseService<FaceEventEntity, FaceCloudEventMapper> {

    public int updateFaceIdCloudEvent(FaceEventEntity entity) {
        return mapper.updateFaceIdCloudEvent(entity);
    }

    public int insertFaceInClientEvent(FaceEventEntity entity) {
        return mapper.insertFaceInClientEvent(entity);
    }

    public int updateFaceOutClientEvent(FaceEventEntity entity) {
        return mapper.updateFaceOutClientEvent(entity);
    }

    public FaceEventEntity getNewestFaceEventByDevice(String deviceID) {
        return mapper.getNewestFaceEventByDevice(deviceID);
    }

    public int updateByMap(Map<String, Object> map) {
        return mapper.updateByMap(map);
    }

}
